<input type="text" class="timepicker" id="<?php echo $id; ?>" value="<?php echo $model->$name; ?>" name="<?php echo get_class($model).'['.$name.']'; ?>" />